# -*- coding: UTF-8 -*-
# @Project ：luffycity 
# @File    ：1.py
# @Author  ：于金龙
# @IDE     ：PyCharm 
# @Date    ：2024/4/10 13:47
class Person(object):
    country = '中国'

    def __init__(self, name, age):
        self.name = name
        self.age = age

    @property
    def show(self):
        return "我叫{},我{}岁".format(self.name, self.age)


s = Person("于金龙", 21)
print(s.show)


# class C(object):
#     @property
#     def x(self):
#         pass
#
#     @x.setter
#     def x(self, value):
#         pass
#
#     @x.deleter
#     def x(self):
#         pass
#
#
# obj = C()
# obj.x = 20
# del obj.x


class D(object):
    def getx(self):
        pass

    def setx(self, value):
        pass

    def delx(self):
        pass


cx = property(getx, setx, delx, "imthexproperty")

obj = D()
obj.x
obj.x = 123

del obj.x
